//package org.west.sky.frame.activiti.study.chapter15.demo04;
//
//import com.alibaba.fastjson.JSONObject;
//import lombok.extern.slf4j.Slf4j;
//import org.mule.api.transformer.TransformerException;
//import org.mule.transformer.AbstractTransformer;
//import org.mule.transformer.types.DataTypeFactory;
//
///**
// * author: chz
// * date: 2025/5/15
// * description:
// */
//@Slf4j
//public class JsonToObject extends AbstractTransformer {
//
//    public JsonToObject() {
//        super();
//        this.registerSourceType(DataTypeFactory.STRING);
//        this.setReturnDataType(DataTypeFactory.create(IpInfo.class));
//    }
//
//    @Override
//    protected Object doTransform(Object o, String s) throws TransformerException {
//        String responseStr = (String) o;
//        log.info("====mule调用结果为: {}", responseStr);
//        IpInfo ipInfo = JSONObject.parseObject(responseStr, IpInfo.class);
//        return ipInfo;
//    }
//}
